{#{% extends "base_navigation.html" %}#}
{% load static %}
<head>
{#    <meta page="edit.html">#}

    <title>设置</title>
{#    <link rel="stylesheet" href="{% static 'Form_Style/css/style-nav.css' %}">#}
{#    <link rel="stylesheet" type="text/css" href="{% static 'index/css/edit.css' %}">#}
    <link rel="stylesheet" type="text/css" href="{% static 'index/css/on_off_button.css' %}">
{#    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">#}
</head>


<body>

    <form  method="POST" action="{% url 'file_manage:setting' %}">
    {% csrf_token %}
    <span>是否发送选定邮箱：</span>
        {% if user.email_condition %}
            <label class="switch">
              <input type="checkbox" name="on_off_button" checked>
              <div class="slider round"></div>
            </label>
        {% else %}
            <label class="switch">
              <input type="checkbox" name="on_off_button" >
              <div class="slider round"></div>
            </label>
        {% endif %}
    <table>
        {% for email in user.email_data.all %}
            <li>
                {{ email.email_address }}
            </li>
        {% endfor %}
    </table>
    
    <br>
    <button class="btn">我确定</button>
    <a href="{% url "file_manage:index" %}">返回</a>
    </form>


</body>
